import request from '@/utils/request.js'

export const getArticles = (params) => {
  return request({
    method: 'get',
    url: '/v1_1/articles',
    params
  })
}

// 获取文章详情
export const getArticleDetail = articleId => {
  return request({
    method: 'get',
    url: `/v1_0/articles/${articleId}`
  })
}
